package com.sansui.blog.utils;

import org.springframework.util.DigestUtils;

import java.util.UUID;

/**
 * @name: Md5
 * @author: Sansui
 * @Software: IDEA
 * @Blog: https://www.cnblogs.com/sansui6/
 * @date: 2022-03-19 23:31
 **/

/*md5加密*/
public class Md5 {


    public static String getMd5(String password) {
        String md5Password = DigestUtils.md5DigestAsHex(password.getBytes());
        return md5Password;
    }


//    public static void main(String[] args) {
//        String nnn = "123456217075b8-b76b-4950-8fd8-a2ac58c09324";
//        String md5Password = getMd5(nnn);
////        String uuid = UUID.randomUUID().toString();
//        System.out.println(md5Password);
//    }

}
